
    

    $.ajax({
        url:"http://chst.vip:1234/api/getsitenav"
    }).then(res=>{
        render1(res.result)
    })

    function render1(data=[]){
        console.log(data);
        let html=""
        html=data.reduce(function(value,item,index){
            console.log(item);
            return value+=`
            <li>
                <a href="${item.navHref}">
                    <img src="${item.navImg}" alt="">
                    <span>${item.navTitle}</span>
                </a>
            </li>
            
            `
        },"")
        
        $(".info").html(html)

    }
